<template>
  <div
    id="app"
    class="w-100 h-100"
  >
    <router-view v-if="showPage" />
  </div>
</template>
<script>
export default {
  name: 'App',
  provide() {
    return {
      reload: this.reload
    }
  },
  watch:{},
  data() {
    return {
      showPage: true
    }
  },
  created(){
    console.log("初始化")
    this.$store.dispatch("setting/getPlatFormList")
  },
  methods: {
    reload() {
      this.showPage = false;
      this.$nextTick(() => {
        this.showPage = true;
      })
    }
  }
}
</script>
<style lang="scss">
</style>
